package com.ddwl.schema.bo.gate;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;


@ApiModel(description = "钉钉推送")
@Getter
@Setter
public class DingTalkBo {

    @ApiModelProperty("消息内容")
    private String message;
    @ApiModelProperty("发送渠道")
    private String channel;

    private String msgtype;
    private Text text;
    private Text link;
    private Text markdown;
    private Text actionCard;
    private At at;


    @Setter
    @Getter
    @Accessors(chain = true)
    public class Text {

        private String content;
        private String title;
        private String text;
        private String btnOrientation;
        private String singleTitle;
        private String singleURL;
    }

    @Setter
    @Getter
    @Accessors(chain = true)
    public class At {

        private List<String> atMobiles;
        private boolean isAtAll;
    }

}
